#!/usr/bin/python

def fun():
    return 0

x = int(raw_input("please input x:"))
y = int(raw_input("please input y:"))

if x>=90:
    if y>=90:
        print "A"
    print "x>=90"
elif x>=60:
    print "B"
else:
    print "bad"
